home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 5
/
Apprentice-Release5.iso
/
Source Code
/
C
/
Frameworks
/
TransSkel 3.24
/
Source
/
Control Stuff
/
SkelFlashButton.c
< prev
next >
Wrap
Text File
|
1996-01-17
|
603b
|
30 lines
/*
* Flash a push button to simulate a click in it.
*/
# include "TransSkel.h"
# define hiliteClicks 8
pascal void
SkelFlashButton (ControlHandle ctrl)
{
short oldHilite;
long dummy;
oldHilite = (**ctrl).contrlHilite;
/*
* Flash button. The constant to use varies. Universal headers release 2
* define a new constant kInButtonControlPart. Release 1 and the old Apple
* headers use inButton.
*/
#if skelUnivHeaders > 1
HiliteControl (ctrl, kInButtonControlPart);
#else
HiliteControl (ctrl, inButton);
#endif
Delay ((long) hiliteClicks, &dummy);
HiliteControl (ctrl, oldHilite);
}